/*
 * Package: org.grassfield.common.dao
 * FileName: MenuDAOTest.java
 *  
 * Created by pandian on Jan 28, 2011
 */
package dao;

import java.util.List;

import bean.MenuItem;

import test.BaseTest;



/**
 * A junit test case for MenuDAO.
 */
public class MenuDAOTest extends BaseTest {
	private IMenuDAO menuDAO;

	/**
	 * Sets the menu dao.
	 * 
	 * @param menuDAO the new menu dao
	 */
	public void setMenuDAO(IMenuDAO menuDAO) {
		this.menuDAO = menuDAO;
	}

	/**
	 * Test case for list.
	 */
	public void testList() {
		List<MenuItem> list = this.menuDAO.list();
		super.assertNotNull("menu list is null",list);
		super.assertTrue("empty menu list",list.size()>0);
	}
}
